/**
 * 新页面，从主页进入ietm
 */
var container=new Vue({
	el:'#container',
	data:{
		title:'大系统',
		ietms1:[],
		ietms2:[],
		ietms3:[],
		isActive1:0,
		isActive2:0,
		isActive3:0,
	},
	methods:{
		click1:function(id,title){//一级
			this.title=title;
			this.level2('/ietm/data/'+id);
		},click2:function(id){//二级
			this.level3('/ietm/data/'+id);
		},click3:function(id){//三级
			location='recautions.html?pmId='+id;
		},level2:function(url){
			var that=this;
			$.get(url,function(data){
				that.ietms2=data.pms;
			})
		},level3:function(url){
			var that=this;
			$.get(url,function(data){
				that.ietms3=data.pms;
			})
		}
	},created:function(){
		var that=this;
		$.get('/ietm/data/1',function(data){//一级
			that.ietms1=data.pms;
			$.get('/ietm/data/'+data.pms[0].id,function(data){
				that.ietms2=data.pms;
				$.get('/ietm/data/'+data.pms[0].id,function(data){
					that.ietms3=data.pms;
				});
			});
		});
	}
});
$(function(){
	$(".nav-bottom-show").click(function(event){
		event.stopPropagation();//阻止冒泡事件
		$(this).hide();
		$(".nav-bottom-content").show(500);
	});
	$(document).click(function(){
        $(".nav-bottom-content").hide(500);
        $(".nav-bottom-show").show();
    });
	var indexPmId=$('#indexPmId').val();
	if($(".interactive-la li[id='"+indexPmId+"']").length>0){
		$(".interactive-la li[id='"+indexPmId+"']").click();
	}
	else{
	$(".interactive-la li:first").click();}
});
